3.401 \(\int \frac{(a+b \log (c (d+e x)^n)) \log (\frac{e (f+g x)}{e f-d g})}{d+e x} \, dx\)

Optimal. Leaf size=66 \[ \frac{b n \text{PolyLog}\left (3,-\frac{g (d+e x)}{e f-d g}\right )}{e}-\frac{\text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{e} \]

[Out]

-(((a + b*Log[c*(d + e*x)^n])*PolyLog[2, -((g*(d + e*x))/(e*f - d*g))])/e) + (b*n*PolyLog[3, -((g*(d + e*x))/(
e*f - d*g))])/e

________________________________________________________________________________________

Rubi [A]  time = 0.083694, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.075, Rules used = {2433, 2374, 6589} \[ \frac{b n \text{PolyLog}\left (3,-\frac{g (d+e x)}{e f-d g}\right )}{e}-\frac{\text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{e} \]

Antiderivative was successfully verified.

[In]

Int[((a + b*Log[c*(d + e*x)^n])*Log[(e*(f + g*x))/(e*f - d*g)])/(d + e*x),x]

[Out]

-(((a + b*Log[c*(d + e*x)^n])*PolyLog[2, -((g*(d + e*x))/(e*f - d*g))])/e) + (b*n*PolyLog[3, -((g*(d + e*x))/(
e*f - d*g))])/e

Rule 2433

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((k*x)/d)^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + (j*x)/e)^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 2374

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> -Sim
p[(PolyLog[2, -(d*f*x^m)]*(a + b*Log[c*x^n])^p)/m, x] + Dist[(b*n*p)/m, Int[(PolyLog[2, -(d*f*x^m)]*(a + b*Log
[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin{align*} \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{d+e x} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac{e \left (\frac{e f-d g}{e}+\frac{g x}{e}\right )}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{e}\\ &=-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{e}+\frac{(b n) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{e}\\ &=-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{e}+\frac{b n \text{Li}_3\left (-\frac{g (d+e x)}{e f-d g}\right )}{e}\\ \end{align*}

Mathematica [A]  time = 0.103574, size = 62, normalized size = 0.94 \[ \frac{b n \text{PolyLog}\left (3,\frac{g (d+e x)}{d g-e f}\right )-\text{PolyLog}\left (2,\frac{g (d+e x)}{d g-e f}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{e} \]

Antiderivative was successfully verified.

[In]

Integrate[((a + b*Log[c*(d + e*x)^n])*Log[(e*(f + g*x))/(e*f - d*g)])/(d + e*x),x]

[Out]

(-((a + b*Log[c*(d + e*x)^n])*PolyLog[2, (g*(d + e*x))/(-(e*f) + d*g)]) + b*n*PolyLog[3, (g*(d + e*x))/(-(e*f)
 + d*g)])/e

________________________________________________________________________________________

Maple [F]  time = 2.107, size = 0, normalized size = 0. \begin{align*} \int{\frac{a+b\ln \left ( c \left ( ex+d \right ) ^{n} \right ) }{ex+d}\ln \left ({\frac{ \left ( gx+f \right ) e}{-dg+fe}} \right ) }\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*(e*x+d)^n))*ln(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x)

[Out]

int((a+b*ln(c*(e*x+d)^n))*ln(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )} \log \left (\frac{{\left (g x + f\right )} e}{e f - d g}\right )}{e x + d}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))*log(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x, algorithm="maxima")

[Out]

integrate((b*log((e*x + d)^n*c) + a)*log((g*x + f)*e/(e*f - d*g))/(e*x + d), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \log \left ({\left (e x + d\right )}^{n} c\right ) \log \left (\frac{e g x + e f}{e f - d g}\right ) + a \log \left (\frac{e g x + e f}{e f - d g}\right )}{e x + d}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))*log(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x, algorithm="fricas")

[Out]

integral((b*log((e*x + d)^n*c)*log((e*g*x + e*f)/(e*f - d*g)) + a*log((e*g*x + e*f)/(e*f - d*g)))/(e*x + d), x
)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(e*x+d)**n))*ln(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )} \log \left (\frac{{\left (g x + f\right )} e}{e f - d g}\right )}{e x + d}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))*log(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x, algorithm="giac")

[Out]

integrate((b*log((e*x + d)^n*c) + a)*log((g*x + f)*e/(e*f - d*g))/(e*x + d), x)